/*
 * @Author: lcy
 * @Date: 2023-06-29 20:34:40
 * @Last Modified by: lcy
 * @Last Modified time: 2023-06-30 21:22:32
 */
import { RouteRecordRaw } from 'vue-router'
export const routes: Array<RouteRecordRaw> = [
  {
    path: '/',
    redirect: '/user/login'
  },
  {
    path: '/user/registry',
    name: 'UserRegistry',
    component: () => import(/* webpackChunkName: "UserLogin" */ '@/views/user/registry.vue')
  },
  {
    path: '/user/login',
    name: 'UserLogin',
    component: () => import(/* webpackChunkName: "UserLogin" */ '@/views/user/login.vue')
  },
  {
    path: '/home',
    name: 'Home',
    component: () => import(/* webpackChunkName: "Home" */ '@/views/user/Home.vue'),
    children: [
      {
        path: '/home/index',
        name: 'Index',
        component: () => import(/* webpackChunkName: "Index" */ '@/views/user/home/Index.vue')
      },
      {
        path: '/home/categary',
        name: 'Categary',
        component: () => import(/* webpackChunkName: "Categary" */ '@/views/user/home/categary.vue')
      },
      {
        path: '/home/shopcar',
        name: 'Shopcar',
        component: () => import(/* webpackChunkName: "Shopcar" */ '@/views/user/home/shopcart.vue')
      },
      {
        path: '/home/mine',
        name: 'Mine',
        component: () => import(/* webpackChunkName: "Mine" */ '@/views/user/home/mine.vue')
      }
    ]
  },
  {
    path: '/404',
    name: 'NotFound',
    component: () => import(/* webpackChunkName: "UserLogin" */ '@/views/common/404.vue')
  },
  {
    path: '/:pathMatch(.*)*',
    redirect: '/404'
  }
]
